import request from '@/utils/request'
const apiUrl = '/api/payment-proof'
// 获取支付证明单列表
export function getPaymentProofList(params) {
    return request({
        url: `${apiUrl}/list`,
        method: 'get',
        params
    })
}

// 获取支付证明单详情
export function getPaymentProofDetail(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'get'
    })
}

// 保存或更新支付证明单
export function savePaymentProof(data) {
    return request({
        url: `${apiUrl}/save`,
        method: 'post',
        data
    })
}

// 删除支付证明单
export function deletePaymentProof(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'delete'
    })
}

// 批量删除支付证明单
export function batchDeletePaymentProof(ids) {
    return request({
        url: `${apiUrl}/batch-delete`,
        method: 'post',
        data: ids
    })
} 